package com.mt.restaurant.entity.staff;

import javax.persistence.*;
import java.io.Serializable;
import com.mt.common.core.annotation.DColumn;
import com.mt.common.core.annotation.DEntity;
import com.mt.common.core.web.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;




@DEntity(label="员工",comment="",moduleLabel="人员管理")
@Entity(name="restaurant_staff")
@Table(name = "restaurant_staff" , indexes = {   })
@ApiModel(description = "员工:")
public class Staff extends BaseEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	@DColumn(index=3,label="联系电话",comment="",component="文本",where=false)
	@ApiModelProperty(value = "联系电话:")
	@Column(name="contact_tel",length=255,nullable=false,unique=false)
	private String contactTel;

	@DColumn(index=4,label="电子邮箱",comment="",component="文本",where=false)
	@ApiModelProperty(value = "电子邮箱:")
	@Column(name="email",length=255,nullable=true,unique=false)
	private String email;

	@DColumn(index=5,label="状态",comment="",component="文本",where=false)
	@ApiModelProperty(value = "状态:")
	@Column(name="status",length=255,nullable=true,unique=false)
	private String status;

	@DColumn(index=6,label="职务",comment="",component="文本",where=false)
	@ApiModelProperty(value = "职务:")
	@Column(name="post",length=255,nullable=false,unique=false)
	private String post;

	@DColumn(index=6,label="用户ID",comment="",component="用户ID",where=false)
	@ApiModelProperty(value = "用户ID:")
	@Column(name="user_id",length=255,nullable=false,unique=false)
	private Long userId;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getContactTel() {
		return this.contactTel;
	}

	public void setContactTel(String contactTel) {
		this.contactTel = contactTel;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getPost() {
		return this.post;
	}

	public void setPost(String post) {
		this.post = post;
	}



}
